package com.suning.sawp.member.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 店员-客户关联表
 * 〈一句话功能简述〉<br> 
 * 〈功能详细描述〉
 *
 * @author 15050519
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Entity(name = "mem_customers")
public class MemCustomer implements Serializable {

    /**
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    
    /**
     * 客户名称
     */
    private String name;
    
    /**
     * 客户编码
     */
    private String custNo;
    
    /**
     * 客户登记
     */
    private String level;
    
    /**
     * 员工工号
     */
    private String employeeId;
    
    /**
     * 员工名称
     */
    private String employeeName;
    
    /**
     * 客户手机号
     */
    private String mobile;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 预计购买时间
     */
    private Date expectDate;
    
    /**
     * 预计购买金额
     */
    private BigDecimal expectPay;
    
    /**
     * 更新时间
     */
    private Date updateTime;
    
    /**
     * 门店编码
     */
    private String storeCode;
    
    /**
     * 详情表ID
     */
    private Long memberDetailId;
    
    /**
     * 是否是贡献客户,0:（默认）不是共享，1：共享
     */
    private int shared;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "cust_no")
    public String getCustNo() {
        return custNo;
    }

    public void setCustNo(String custNo) {
        this.custNo = custNo;
    }

    @Column(name = "level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Column(name = "employee_id")
    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    @Column(name = "employee_name")
    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    @Column(name = "mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "expect_date")
    public Date getExpectDate() {
        return expectDate;
    }

    public void setExpectDate(Date expectDate) {
        this.expectDate = expectDate;
    }

    @Column(name = "expect_pay")
    public BigDecimal getExpectPay() {
        return expectPay;
    }

    public void setExpectPay(BigDecimal expectPay) {
        this.expectPay = expectPay;
    }

    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "store_code")
    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    @Column(name = "member_detail_id")
    public Long getMemberDetailId() {
        return memberDetailId;
    }

    public void setMemberDetailId(Long memberDetailId) {
        this.memberDetailId = memberDetailId;
    }

    @Column(name = "shared")
    public int getShared() {
        return shared;
    }

    public void setShared(int shared) {
        this.shared = shared;
    }

    /**
     * 这里既没有使用ToStringStyle.SHORT_PREFIX_STYLE 截掉包名,也没有使用append追加,使用的是原始的tostring方法
     */
    @Override
    public String toString() {
        return "MemCustomer [id=" + id + ", name=" + name + ", custNo=" + custNo + ", level=" + level + ", employeeId="
                + employeeId + ", employeeName=" + employeeName + ", mobile=" + mobile + ", createTime=" + createTime
                + ", expectDate=" + expectDate + ", expectPay=" + expectPay + ", updateTime=" + updateTime
                + ", storeCode=" + storeCode + ", memberDetailId=" + memberDetailId + ", shared=" + shared + "]";
    }
    
}
